import { LocationQueryRaw, RouteParamsRaw } from 'vue-router'

/**
 * 调取主应用的函数
 * @param path 路由path
 * @param extend 路由传参
 */
export const mainRouter = (path: string, query?: LocationQueryRaw) => {
  // @ts-ignore
  window['$wujie']?.bus.$emit('changeRoute', path, query)
}
